package com.oj.common.core.constants;

import lombok.Getter;

/**
 * @Description
 * @Author bin
 * @Date 2025/4/14
 */

public class CacheConstants {

    public final static String LOGIN_TOKEN_KEY = "logintoken:";

    public final static long EXP = 720L;

    public final static long REFRESH_TIME = 60L;

    public final static String PHONE_CODE_KEY = "p:c:";

    public final static String CODE_TIME_KEY = "c:t:"; // 验证码次数限制
    public final static String EXAM_TIME_KEY = "e:t:l"; // 未完赛的缓存
    public final static String EXAM_HISTORY_KEY = "e:h:l"; // 竞赛历史信息
    public final static String EXAM_DETAIL_KEY = "e:d:"; // 竞赛详情信息

    public final static String USER_EXAM_LIST = "u:e:l:";   //用户竞赛列表(我的竞赛)


    public static final String USER_DETAIL_KEY = "u:d:"; // 用户详情

    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t";

    public static final String QUESTION_LIST = "q:l:";

    public static final String EXAM_QUESTION_LIST = "e:q:l:";
}
